<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>题目类型</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
        <link href="${pageContext.request.contextPath}/css/mine.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.11.1.js"></script>
        <script type="text/javascript">
        	$(function(){
        		$(":button").click(function(){
        			var qt=$("[name=qtype]").val();
        			switch(parseInt(qt)){
        			case 0:
        			case 1:
        			case 2:
        			case 3:
        				$("form").prop("action","${pageContext.request.contextPath }/nonMatrixWithOtherQuestionDesign.jsp");
        				break;
        			case 4:
        				$("form").prop("action","${pageContext.request.contextPath }/nonMatrixSelectQuestionDesign.jsp");
        				break;
        			case 5:
        				$("form").prop("action","${pageContext.request.contextPath }/nonMatrixTextQuestionDesign.jsp");
        				break;
        			case 6:
        			case 7:
        				$("form").prop("action","${pageContext.request.contextPath }/matrixNormalQuestionDesign.jsp");
        				break;
        			case 8:
        				$("form").prop("action","${pageContext.request.contextPath }/matrixSelectQuestionDesign.jsp");
        				break;
        			}
        			$("form").submit();
        		});
        	});
        </script>
    </head>
    <body>
        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：问卷管理-》确定添加的题目的类型</span>
                
            </span>
        </div>
        <div></div>
        <div style="font-size: 13px;margin: 10px 5px">
            <form action="" method="post">
            <table border="1" width="100%" class="table_a">
                <tr>
                    <td>题目类型</td>
                    <td>
                        <input type="hidden" name="sid" value="${param.sid }"/>
                        <input type="hidden" name="pid" value="${param.pid }"/>
                        <select name="qtype">
							<option value="0">非矩阵式横向单选按钮</option>
							<option value="1">非矩阵式纵向单选按钮</option>
							<option value="2">非矩阵式横向复选按钮</option>
							<option value="3">非矩阵式纵向复选按钮</option>
							<option value="4">非矩阵式下拉列表</option>
							<option value="5">非矩阵式文本框</option>
							<option value="6">矩阵式单选按钮</option>
							<option value="7">矩阵式复选按钮</option>
							<option value="8">矩阵式下拉列表</option>
						</select>
                    </td>
                </tr>
				
                <tr>
                    <td colspan="2" align="center">
                        <input type="button" value="下一步"/>
                    </td>
                </tr>  
            </table>
            </form>
        </div>
    </body>
</html>